Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@lukego
lukego / 0README.md
Last active August 26, 2026 03:59
CLIME installation instructions
@vexx32
vexx32 / sidebery.css
Last active August 26, 2026 03:59
CSS for Sidebery extension in Firefox to work as a collapsible sidebar
#root.root {--nav-btn-width: 28px;}
#root.root {--nav-btn-height: 28px;}
#root.root {--tabs-normal-fg: #d4d4d4;}
#root.root {--tabs-pinned-height: var(--tabs-height);}
#root.root {--tabs-close-btn-margin: 5px;}
#root.root {--tabs-activated-color-layer-opacity: 0.4;}
#root.root {--tabs-color-layer-opacity: 0.1;}
#root.root {--general-margin: 3px;}
#root.root {--tabs-height: 30px;}
#root.root {--tabs-indent: 5px;}
@kennwhite
kennwhite / killBashWarningEverywhere.md
Last active August 26, 2026 03:58
Kill every warning of "The default interactive shell is now zsh." everywhere on MacOS

I'm well aware of how old the version of Bash is that ships with MacOS and Apple's public deprecation plans. That said, I don't like having to fiddle with this in VS Code and every other tool that tries to be clever. This will kill the message everywhere for processes of this user. Don't bother screwing around with $HOME .bashrc .profiile .bash_profile BS. Or do, but realize the local config specific to the user won't suffice for VS Code et al. You can also use Brew to do this, which will use the most recent version of Bash, but I have a love-hate relationship with Brew and prefer to use this approach instead. Caveat Emptor: This works for me, but use at your own risk.


@kennwhite
kennwhite / undork_macos_finder_views.sh
Last active August 26, 2026 03:57
Undork macOS & OSX Finder scattering .DS_Store files everywhere and not being consistent about list views
# Use list view in all Finder windows by default
# Four-letter codes for the other view modes: `icnv`, `clmv`, `glyv`
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Remove other views, which Finder remembered because of the .DS_Store files:
find ~ -name ".DS_Store" -delete 2>/dev/null
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
@adrianhajdin
adrianhajdin / index.css
Created November 11, 2021 13:19
Build and Deploy a Fully Responsive Website with Modern UI/UX in React JS
.gpt3__whatgpt3 {
display: flex;
flex-direction: column;
padding: 2rem;
background: var(--color-footer);
/* ff 3.6+ */
background:-moz-radial-gradient(circle at 30% -100%, #042c54 25%, rgba(4, 44, 84, 1) 85%, rgba(27, 120, 222, 1) 100%);
@JTRNS
JTRNS / first-names.txt
Created February 11, 2023 09:06
A list of 200 common first names
James
Mary
Robert
Patricia
John
Jennifer
Michael
Linda
David
Elizabeth
@Brendonovich
Brendonovich / vite-opencode-picker.ts
Last active August 26, 2026 03:36
Development-only Vite element picker for sending UI feedback to OpenCode V2
// Now available as a Vite plugin!
// https://npmx.dev/@brendonovich/vite-plugin-opencode
import type { IncomingMessage, ServerResponse } from "node:http";
import type { Plugin } from "vite";
import {
transformAsync,
types,
type NodePath,
@Emaryllis
Emaryllis / README.md
Last active August 26, 2026 03:35
How to setup signed commits on GitHub

How to add SSH Keys to GitHub

Because Github's documentation is confusing af

  1. Create an ssh key
ssh-keygen -t ed25519 -C "<your_github_noreply_email>"
  1. Enter a secure passphrase (if you wish)

  2. Add your ssh key to the ssh agent

    1. Start the ssh agent
    eval "$(ssh-agent -s)"
  3. Add your ssh private key to the ssh agent (Default name would be id_ed25519)